import request from "../utils/request";


const detail = data => request.get("/api/admin/user_details", { params: data }) // 详情
const moneyRecharge = data => request.put("/api/admin/user/storedmoney/recharge", data) // 余额充值
const moneyRefund = data => request.put("/api/admin/user/storedmoney/refund", data) //余额退款

const hunJingrecharge = data => request.put("/api/admin/user/hunjing/recharge", data) //魂晶充值
const hunJingwithdraw = data => request.put("/api/admin/user/hunjing/withdraw", data) //魂晶提现
const hunJingdeduction = data => request.put("/api/admin/user/hunjing/deduction", data) //魂晶扣除

const shangBirecharge = data => request.put("/api/admin/user/score/recharge", data) //赏币充值
const shangBideduction = data => request.put("/api/admin/user/score/deduction", data) //赏币扣除
// 用户
const moneyRecord = data => request.get("/api/admin/user/record/expense", { params: data }) //消费记录
const moneyRecordGoods = data => request.get("/api/admin/user/record/expense/goods", { params: data }) //消费记录中赏品详情
const yingKuiRecord = data => request.get("/api/admin/user/profit", { params: data }) //盈亏记录
const packages = data => request.get("/api/admin/user/packages", {params:data}) //赏柜详情


export default {
    detail, moneyRecharge, moneyRefund,
    hunJingrecharge, hunJingwithdraw, hunJingdeduction,
    shangBirecharge, shangBideduction, yingKuiRecord, moneyRecord, packages, moneyRecordGoods
}
